package com.code.day05;

public class Day05Method {

    public static void main(String[] args) {
        add();
        sub();
        print(10,20);
        int result = add2();
        int results = add3(20,20);
        System.out.println(result);
        System.out.println(results);
    }
    public  static  void sub(){
        int a = 10;
        int b = 20;
        System.out.println(a-b);
    }
    public static void add(){
        int a = 10;
        int b = 20;
        System.out.println(a+b);
    }
    public static void print(int a,int b){
        System.out.println(a+b);
    }

    public static  int add2(){
        int a=10;
        int b=20;
        return a+b;
    }
    public static int add3(int a,int b){
        return a+b;
    }
}
